{% import '@SyliusAdmin/shared/helper/loader.html.twig' as loader %}

{% set statistics_data = hookable_metadata.context.statistics_data %}

<div class="col-sm-6 col-lg-3 mb-3">
    <div class="card card-sm">
        {{ loader.render() }}
        <div class="card-body">
            <div class="row align-items-center">
                <div class="col-auto">
                    <span class="bg-gray text-black-50 avatar">
                        {{ ux_icon('tabler:shopping-bag') }}
                    </span>
                </div>
                <div class="col">
                    <div class="subheader">{{ 'sylius.ui.paid_orders'|trans }}</div>
                    <div class="h2 mb-0 me-2" {{ sylius_test_html_attribute('paid-orders') }}>
                        {{ statistics_data.business_activity_summary.paidOrdersCount }}
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
